package top.kaoshanji.p1ch04b;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * 代码清单 p1ch04b-01：国际化与本地化基本实践
 * author kaoshanji
 * ^_^
 * create time 2025/1/16 19:16
 */
public class GreeetingsDemo {

    private static final Logger logger = LogManager.getLogger(GreeetingsDemo.class);

    public static void main(String[] args) {
        logger.info("...代码清单 p1ch04b-01：国际化与本地化基本实践...");

        NormalGreetings ng = new NormalGreetings();
        String ngStr = ng.greet("Alex");
        logger.info("...ngStr:{}...", ngStr);

        I18nGreetings ig = new I18nGreetings();
        String igStr = ig.greet("Alex");
        logger.info("...igStr:{}...", igStr);

    }

}
